package PolymorphicHomeworkTest5;

public abstract class Graph {
    private String color;
    private boolean fill;  //true表示填充，false表示不填充
    public Graph(){

    }
    public Graph(String color,boolean fill){
        this.color = color;
        this.fill = fill;
    }

    public String getColor() {
        return color;
    }

    public void setColor(String color) {
        this.color = color;
    }

    public boolean isFill() {
        return fill;
    }

    public void setFill(boolean fill) {
        this.fill = fill;
    }
    public abstract void getArea();         //获取图形面积
    public abstract void getPerimeter();    //获取图形周长
}
